<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<title>title</title>
	<link rel="stylesheet" type="text/css" href="../css/api.css" />
	<!-- <link rel="stylesheet" type="text/css" href="../css/menu.css" /> -->
	<link rel="stylesheet" type="text/css" href="../css/mzui/css/mzui.min.css" />
	<style>
		th {
			text-align: center;
		}

		td {
			text-align: center;
		}

		.infoTop {
			background-color: #d65b5d;
			height: 73px;
			/* border-bottom:1px solid #994c00; */
			text-align: center;
			/* border:1px solid red; */
		}

		.infoTop a {
			position: absolute;
			height: 37px;
			padding: 34px 20px 0 20px;
			top: 0px;
			left: 0px;
			cursor: pointer;
		}

		.infoTop img {
			height: 25px;
		}

		.infoTop span {
			position: absolute;
			top: 24px;
			left: 150px;
			font-size: 20px;
			height: 50px;
			line-height: 50px;
			color: #fff;
			cursor: default;
		}

		.infoTop .nav {
			float: left;
			width: 25px;
			height: 25px;
			margin: 35px 15px auto 20px;
		}

		.infoTop .moretype {
			position: absolute;
			top: 29px;
			right: 15px;
			height: 40px;
			width: 40px;
			line-height: 40px;
			color: #fff;
			cursor: pointer;
			background: url() no-repeat right 10px;
			/*background:url() no-repeat right 10px;*/
			background-size: 20px 20px;
		}

		.save-btn {
			position: fixed;
			bottom: 0px;
			padding-left: 59px;
			padding-right: 59px;
			height: 56px;
			width: 100%;
			background-color: #FFFFFF;
			display: block;
		}

		.save-btn #svBtn {
			display: inline-block;
			height: 35px;
			width: 242px;
			margin-top: 12px;
			border: none;
			background-color: #D65B5D;
			border-radius: 10px;
			outline: none;
			color: #fff;
			font-size: 16px;
			font-family: "方正兰亭黑简体", "Microsoft YaHei";
			line-height: 16px;
			text-align: center;
			cursor: pointer;
			text-decoration: none;
		}

		.save-btn #svBtn:hover {
			background-color: #d65b5d;
		}

		.save-btn #svBtn:active {
			background-color: #FFAEB9;
		}
	</style>
</head>

<body>

	<div class="page">

		<div class="infoTop">
			<!--<img class="nav" id="openMenu" src=""/>
			-->
			<a onClick="javascript :api.closeWin();"><img alt="返回" src=""
								title="back"></a>
			<span>试块入库</span>
			<!-- <div class="moretype" onclick="showscanner()"> </div> -->
		</div>
		<div class="save-btn" id="save-btn">
			<button type="button" id="svBtn">确认</button>
		</div>
	</div>

</body>
<script type="text/javascript" src="../script/public/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/core/core.js"></script>
<!--<script type="text/javascript" src="../script/mzui/js/mzui.min.js"></script>-->
<script type="text/javascript">
	apiready = function() {
		var meltingStove = api.pageParam.meltingStove;
		var meltingWrap = api.pageParam.meltingWrap;
		var texture = api.pageParam.texture;
		var pureTime = api.pageParam.pureTime;
		var blockNo = api.pageParam.blockNo;

		api.openFrame({
			name: 'frm_inStorageForOne',
			url: 'frm_inStorageForOne.html',
			reload: true,
			pageParam: {
				meltingStove: meltingStove,
				meltingWrap: meltingWrap,
				texture: texture,
				pureTime: pureTime,
				blockNo:blockNo
			},
			rect: {
				x: 0,
				y: 74,
				w: api.winWidth,
				h: api.winHeight - 130
			}
		});
		//	//右滑打开菜单
		//		api.addEventListener({
		//		    name:'swiperight'
		//		}, function(ret, err){
		//		   api.openFrame({
		//	           name: 'leftMenu',
		//	           url: 'left_menu.html',
		//	           rect: {
		//		           x:0,
		//		           y:0,
		//		           w:api.winWidth/2,
		//		           h:api.winHeight
		//	           }
		//         });
		//		});
		//
		//测试--不能触屏

		$("#openMenu").click(function() {
			api.openFrame({
				name: 'leftMenu',
				url: 'left_menu.html',
				rect: {
					x: 0,
					y: 0,
					w: api.winWidth / 2,
					h: api.winHeight
				}
			});
		});



		//	    setListenerAjpush();
		//	    setNotice();
	};


	//点击确认
	$("#svBtn").click(function() {
		api.execScript({
			frameName: 'frm_inStorageForOne',
			script: 'saveMaterial();'
		});
	});

	function exitApp() {
		api.addEventListener({
			name: 'keyback'
		}, function(ret, err) {
			api.toast({
				msg: '再按一次返回键退出' + api.appName,
				duration: 2000,
				location: 'bottom'
			});

			api.addEventListener({
				name: 'keyback'
			}, function(ret, err) {
				api.closeWidget({
					id: 'A6057658489882', //这里改成自己的应用ID
					retData: {
						name: 'closeWidget'
					},
					silent: true
				});
			});

			setTimeout(function() {
				exitApp();
			}, 3000)
		});
	}

	
</script>

</html>
